package com.hddznet.uniplatform.sm.dto;

import java.util.Collection;
import java.util.List;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import lombok.Data;

@Data
public class UserInfo extends User {
	
	private String id;
	private String account;
	private String userName;
	private String groupId;
	private String groupName;
	private List<String> roles;
	private String email;
	private String mobile;
	private Integer status;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public UserInfo(String username, String password, boolean enabled, boolean accountNonExpired,
			boolean credentialsNonExpired, boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
	}

}
